import request from '@/utils/request'

// 水质统计总览
export function getWaterQualityOverview(params) {
  return request({
    url: '/dispatch/system/dispatchWaterQualitySpecialSubject/overview',
    method: 'get',
    params
  })
}

// 水质指标异常占比
export function getAbnormalProportion(params) {
  return request({
    url: '/dispatch/system/dispatchWaterQualitySpecialSubject/abnormalProportion',
    method: 'get',
    params
  })
}

// 水质合格率趋势
export function getQualifiedRateTrend(params) {
  return request({
    url: '/dispatch/system/dispatchWaterQualitySpecialSubject/qualityTrend',
    method: 'get',
    params
  })
}

// 获取区域下拉列表
export function getRegionList() {
  return request({
    url: '/dispatch/system/dispatchPressureSpecialSubject/regionList',
    method: 'get'
  })
}

// 趋势分析详情
export function getTrendAnalysisDetail(params) {
  return request({
    url: '/dispatch/system/dispatchWaterQualitySpecialSubject/trendDetail',
    method: 'get',
    params
  })
}

// 单项水质合格率（柱状/条形）
export function getSingleQualityRate(params) {
  return request({
    url: '/dispatch/system/dispatchWaterQualitySpecialSubject/singleMetricRates',
    method: 'get',
    params
  })
}